<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>session范围数据测试</title>
</head>
<body>
<!-- 
Application 范围：在整个服务器上保存数据，所有用户共享；javax.servlet.ServletContext(接口)
所有浏览器都可以访问
 -->
<%
	//设置两个session范围的数据 key -> value
	application.setAttribute("name", "applicationCarlyang");
	application.setAttribute("age", 26);
%>
<h2>application值设置完毕</h2>
</body>
</html>